package org.squareland;

public class Entity {
	public Entity(int height, int width) {
		this.height = height;
		this.width = width;		
		pixels = new int[height][width];
	}

	public Entity(int height, int width, int x, int y) {
		this(height,width);
		this.x = x;
		this.y = y;
	}
	
	public int at(int row, int col) {
		return pixels[row][col];
	}
	
	public void setPixel(int row, int col, int color) {
		pixels[row][col] = color;
	}
	
	public int getHeight() {
		return height;
	}
	
	public int getWidth() {
		return width;
	}
		
	public float x;
	public float y;
	private int height;
	private int width;
	private int pixels[][];
	
}
